//
//  Pay_TCell.swift
//  MikerShop
//
//  Created by eme on 2016/12/24.
//  Copyright © 2016年 eme. All rights reserved.
//

/*
 owner:cy
 update:2016年12月24日18:33:24
 info: 支付类型
 */
import UIKit
import Kingfisher
import RxSwift

class Pay_TCell: UITableViewCell {
    
    @IBOutlet weak var payLogo_ImgV: UIImageView!
    
    @IBOutlet weak var payTitle_Lb: UILabel!
    
    @IBOutlet weak var selected_ImgV: UIImageView!
    
    var item :PayModel?{
        didSet{
            if let item = self.item {
                self.payTitle_Lb.text = item.paytitle
                self.payLogo_ImgV.image = UIImage(named: item.paylogo, in: AryaCore.bundle, compatibleWith: nil)
                let image = item.hasSelected ? "paystate-selected":"paystate-unselected"
                self.selected_ImgV.image =  UIImage(named: image, in: AryaCore.bundle, compatibleWith: nil)  
            }
        }
    }
    
    override func awakeFromNib() {
        
        
    }
}
